package edu.sju.ssm.entity;

public class Publisher {
	private Integer id;
	private String name;
	private int yearCreated;
	private String intro;
	
	public Publisher() { }

	public Publisher(Integer id, String name, int yearCreated, String intro) {
		this.id = id;
		this.name = name;
		this.yearCreated = yearCreated;
		this.intro = intro;
	}

	public Publisher(String name, int yearCreated, String intro) {
		this.name = name;
		this.yearCreated = yearCreated;
		this.intro = intro;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getYearCreated() {
		return yearCreated;
	}

	public void setYearCreated(int yearCreated) {
		this.yearCreated = yearCreated;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	@Override
	public String toString() {
		return String.format("id: %d, name: %s, yearCreated: %d, intro: %s", 
				id,
				name,
				yearCreated,
				intro);
	}
}
